package com.example.springbootmybatisplus.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.example.springbootmybatisplus.common.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 讲师
 * </p>
 *
 * @author zx
 * @since 2021-09-03
 */
@Data
  @EqualsAndHashCode(callSuper = true)
    @TableName("edu_teacher")
public class Teacher extends BaseEntity {

    private static final long serialVersionUID = 1L;

      /**
     * 讲师姓名
     */
      private String name;

      /**
     * 讲师简介
     */
      private String intro;

      /**
     * 讲师资历,一句话说明讲师
     */
      private String career;

      /**
     * 头衔 1高级讲师 2首席讲师
     */
      private Integer level;

      /**
     * 讲师头像
     */
      private String avatar;

      /**
     * 排序
     */
      private Integer sort;

      /**
     * 逻辑删除 1（true）已删除， 0（false）未删除
     */
      @TableField("is_deleted")
    @TableLogic
    private Boolean deleted;


}
